package com.example.homeworka;

public class ReadHeadDuck extends Duck {
    @Override
    public void display() {
        System.out.println("我是红头鸭子");
    }

    ReadHeadDuck(){
            flyBehavior = new FlyWithWings();
            quackBehavior = new Quack();
    }
}
